﻿using System;
using System.Windows.Forms;
using System.Diagnostics;

namespace KC.Presentation.Stockmaster
{
	public partial class About : Form
	{
		public About()
		{
			InitializeComponent();
		}

		private void btnClose_Click(object sender, EventArgs e)
		{
			DialogResult = System.Windows.Forms.DialogResult.OK;
			Close();
		}

		private void llWebsite_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
		{
			try { Process.Start(@"http://hub.kconnolly.net/page.aspx?title=Project+Stockmaster%3a+EAv+Ticker+Tracker"); }
			catch { }
		}

		private void llMyWebsite_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
		{
			try { Process.Start(@"http://www.kconnolly.net");}
			catch { }
		}

		private void llEULA_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
		{
			try { Process.Start(@"EULA.txt"); }
			catch { MessageBox.Show("EULA.TXT file not found."); }
		}

		private void llWhatsnew_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
		{
			try { Process.Start(@"whatsnew.txt"); }
			catch { MessageBox.Show("WHATSNEW.TXT file not found."); }
		}

		private void llTwitter_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
		{
			try { Process.Start(@"http://www.twitter.com/tsilb"); }
			catch { }
		}

		private void llEav_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
		{
			try { Process.Start(@"http://www.empireavenue.com/TSILB"); }
			catch { }
		}

		private void llCoolJ_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
		{
			try { Process.Start(@"http://www.empireavenue.com/IX"); }
			catch { }
		}
	}
}
